
public class HRDepartment implements Department {
    @Override
    public void visit(FulltimeEmployee employee) {
        System.out.println("人力资源部：每周全职工作时间为" + employee.getWeeklyHours());

    }

    @Override
    public void visit(ParttimeEmployee employee) {
        System.out.println("人力资源部：每周兼职工作时间为" + employee.getWeeklyHours());

    }
}